import Home from "@/views/home/Home.vue";
import Center from "@/views/center/Center.vue";
import UserAdd from "@/views/user-manage/UserAdd";
import UserList from "@/views/user-manage/UserList";
import NewsList from "@/views/news-manage/NewsList";
import NewsAdd from "@/views/news-manage/NewsAdd";
import ProductAdd from "@/views/product-manage/ProductAdd";
import ProductList from "@/views/product-manage/ProductList";
import NotFound from "@/views/notfound/NotFound";

const routes = [
  {
    path: "/",
    redirect: "/index",
  },
  {
    path: "/index",
    component: Home,
  },
  {
    path: "/center",
    component: Center,
  },
  {
    path: "/user-manage/adduser",
    component: UserAdd,
  },
  {
    path: "/user-manage/userlist",
    component: UserList,
  },
  {
    path: "/news-manage/addnews",
    component: NewsAdd,
  },
  {
    path: "/news-manage/newslist",
    component: NewsList,
  },
  {
    path: "/procuct-manage/addproduct",
    component: ProductList,
  },
  {
    path: "/procuct-manage/procuctList",
    component: ProductAdd,
  },
  {
    path: "/:pathMatch(.*)*",
    name: "NotFound",
    component: NotFound,
  },
];

export default routes;
